package com.my.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.my.bean.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 潜在客户资料管理 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2018-08-25
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    //查询所有
    /*List<Customer> selectCustomer();*/

    //实现分页查询
    List<Customer> selectMyPage(@Param("param") Map map1, @Param("map") Map map, @Param("areaid") long areaid,@Param("admin") boolean admin);
    int countMyPage(@Param("param") Map map1, @Param("map") Map map, @Param("areaid") long areaid,@Param("admin") boolean admin);
}